<template>
	<router-view />
</template>

<script>
import { onMounted } from 'vue'
export default {
	name: 'App',
  setup () {
      const layer = document.getElementsByClassName('loading-layer')[0]
    const loadPage = () => {
      // 关闭首屏loading
      if (layer) {
        setTimeout(() => {
          layer.remove()
        }, 500)
      }
    }
   onMounted(() => {

     if (layer != null)
       layer.remove();
      loadPage()
    })
  }
}

</script>
